// 导入配置好的axios实例
import request from './axiosConfig'

// 股票涨跌相关API
export function getCharts(params) {
    return request({
        url: '/stock/charts',
        method: 'get',
        params: params
    })
}

export function getlineChart(params) {
    return request({
        url: '/stock/lineChart',
        method: 'get',
        params: params
    })
}

export function getrecordList(params) {
    return request({
        url: '/stock/record/list',
        method: 'get',
        params: params
    })
}

export function getMarketCount() {
    return request({
        url: '/stock/dailyFilter/lasted',
        method: 'get'
    })
}

export function getDailyProfit() {
    return request({
        url: '/stock/daily/profit',
        method: 'post'
    })
}
